{include file="header.html"}
<div class="row">
<div class="span12"> 
{include file='specialtopic/nav.html'}
 <table class='table table-bordered' width='100%'>
  <tr>
   <td>id</td>
   <td>名称</td>
   <td>封面</td>
   <td>作者</td>
   <td>简介</td>
   <td>状态</td>
   <td>添加时间</td>
   <td>开始时间</td>
   <td>结束时间</td>
<td>操作</td>
  </tr>
 {foreach item=c from=$data}
<tr>
   <td>{$c.id}</td>
   <td>{$c.title}</td>
   <td><img src="{$c.imgurl|images_site}.100x100.jpg" style="width:100px;" /></td>
   <td>{$c.keywords}</td>
   <td>{$c.author}</td>
   <td> {if $c.status eq 2}
           <img src="/static/images/yes.gif" class="ajax_no"  rurl="{$appadmin}?m=specialtopic&a=status&id={$c.id}&status=2" url="{$appadmin}?m=specialtopic&a=status&id={$c.id}&status=1" />
           {else}
           <img src="/static/images/no.gif"  class="ajax_yes" url="{$appadmin}?m=specialtopic&a=status&id={$c.id}&status=2" rurl="{$appadmin}?m=specialtopic&a=status&id={$c.id}&status=1" />  
          {/if}</td>
   <td>{$c.dateline|date:Y-m-d}</td>
   <td>{$c.starttime|date:Y-m-d }</td>
   <td>{$c.endtime|date:Y-m-d}</td>
<td><a href="{$appadmin}?m=specialtopic&a=add&id={$c.id}">编辑</a> <a href="{$appindex}?m=specialtopic&a=show&id={$c.id}" target="_blank">查看</a> <a href="javascript:;" class="delete" url="{$appadmin}?m=specialtopic&a=delete&id={$c.id}">删除</a></td>
  </tr>
   {/foreach}
 </table>
<div>{$pagelist}</div>
</div>
</div>
{include file="footer.html"}